import api from '@/api/api'

const resourceManageRoles = {
    name: '资源管理',
    role: '/resourceManage',
    children: [
        {
            name: '资源管理',
            role: '/publicResourceManage',
            api: [api.publicResourceManageList],
            children: [
                {
                    name: '列表',
                    role: '/publicResourceManage/list',
                    api: [api.publicResourceManageList]
                },
                {
                    name: '详情',
                    role: '/publicResourceManage/get',
                    api: [api.publicResourceManageGet]
                },
                {
                    name: '编辑',
                    role: '/publicResourceManage/edit',
                    api: [api.publicResourceManageUpdate]
                }, {
                    name: '添加',
                    role: '/publicResourceManage/add',
                    api: [api.publicResourceManageSave]
                }, {
                    name: '删除',
                    role: '/publicResourceManage/delete',
                    api: [api.publicResourceManageDelete]
                }, {
                    name: '资源类型集合',
                    role: '/resourceType/group',
                    api: [api.resourceTypeGroup]
                }, {
                    name: '资源学科集合',
                    role: '/resourceSubject/group',
                    api: [api.resourceSubjectGroup]
                }, {
                    name: '资源专业集合',
                    role: '/resourceMajor/group',
                    api: [api.resourceMajorGroup]
                }, {
                    name: '资源课程集合',
                    role: '/resourceCourse/group',
                    api: [api.resourceCourseGroup]
                }, {
                    name: '资源格式集合',
                    role: '/resourceFormat/group',
                    api: [api.resourceFormatGroup]
                }]
        },
        {
            name: '公共资源审核',
            role: '/resourceVerify',
            api: [api.resourceVerifyList],
            children: [
                {
                    name: '列表',
                    role: '/resourceVerify/list',
                    api: [api.resourceVerifyList]
                }, {
                    name: '详情',
                    role: '/resourceVerify/get',
                    api: [api.resourceVerifyGet]
                }, {
                    name: '审核',
                    role: '/resourceVerify/apply',
                    api: [api.resourceVerifyApply]
                }]
        },
        {
            name: '审核历史记录',
            role: '/resourceVerifyHistory',
            api: [api.resourceVerifyHistoryList],
            children: [
                {
                    name: '列表',
                    role: '/resourceVerifyHistory/list',
                    api: [api.resourceVerifyHistoryList]
                }, {
                    name: '详情',
                    role: '/resourceVerifyHistory/view',
                    api: [api.resourceVerifyHistoryGet]
                }, {
                    name: '删除',
                    role: '/resourceVerifyHistory/delete',
                    api: [api.resourceVerifyHistoryDelete]
                }]
        }, {
            name: '资源类型管理',
            role: '/resourceType',
            children: [
                {
                    name: '资源类型管理',
                    role: '/resourceType',
                    api: [api.resourceTypeList],
                    children: [
                        {
                            name: '列表',
                            role: '/resourceType/list',
                            api: [api.resourceTypeList]
                        },
                        {
                            name: '获取',
                            role: '/resourceType/get',
                            api: [api.resourceTypeGet]
                        },{
                            name: '编辑',
                            role: '/resourceType/edit',
                            api: [api.resourceTypeUpdate]
                        }, {
                            name: '添加',
                            role: '/resourceType/add',
                            api: [api.resourceTypeSave]
                        }, {
                            name: '删除',
                            role: '/resourceType/delete',
                            api: [api.resourceTypeDelete]
                        },
                    ]
                },
                {
                    name: '资源学科管理',
                    role: '/resourceSubject',
                    api: [api.resourceSubjectList],
                    children: [
                        {
                            name: '列表',
                            role: '/resourceSubject/list',
                            api: [api.resourceSubjectList]
                        },
                        {
                            name: '获取',
                            role: '/resourceSubject/get',
                            api: [api.resourceSubjectGet]
                        }, {
                            name: '编辑',
                            role: '/resourceSubject/edit',
                            api: [api.resourceSubjectUpdate]
                        }, {
                            name: '添加',
                            role: '/resourceSubject/add',
                            api: [api.resourceSubjectSave]
                        }, {
                            name: '删除',
                            role: '/resourceSubject/delete',
                            api: [api.resourceSubjectDelete]
                        },
                    ]
                },
                {
                    name: '资源专业管理',
                    role: '/resourceMajor',
                    api: [api.resourceMajorList],
                    children: [
                        {
                            name: '列表',
                            role: '/resourceMajor/list',
                            api: [api.resourceMajorList]
                        },
                        {
                            name: '获取',
                            role: '/resourceMajor/get',
                            api: [api.resourceMajorGet]
                        }, {
                            name: '编辑',
                            role: '/resourceMajor/edit',
                            api: [api.resourceMajorUpdate]
                        }, {
                            name: '添加',
                            role: '/resourceMajor/add',
                            api: [api.resourceMajorSave]
                        }, {
                            name: '删除',
                            role: '/resourceMajor/delete',
                            api: [api.resourceMajorDelete]
                        },
                    ]
                },
                {
                    name: '资源课程管理',
                    role: '/resourceCourse',
                    api: [api.resourceCourseList],
                    children: [
                        {
                            name: '列表',
                            role: '/resourceCourse/list',
                            api: [api.resourceCourseList]
                        },
                        {
                            name: '获取',
                            role: '/resourceCourse/get',
                            api: [api.resourceCourseGet]
                        }, {
                            name: '编辑',
                            role: '/resourceCourse/edit',
                            api: [api.resourceCourseUpdate]
                        }, {
                            name: '添加',
                            role: '/resourceCourse/add',
                            api: [api.resourceCourseSave]
                        }, {
                            name: '删除',
                            role: '/resourceCourse/delete',
                            api: [api.resourceCourseDelete]
                        },
                    ]
                },
                {
                    name: '资源格式管理',
                    role: '/resourceFormat',
                    api: [api.resourceFormatList],
                    children: [
                        {
                            name: '列表',
                            role: '/resourceFormat/list',
                            api: [api.resourceFormatList]
                        },
                        {
                            name: '获取',
                            role: '/resourceFormat/get',
                            api: [api.resourceFormatGet]
                        }, {
                            name: '编辑',
                            role: '/resourceFormat/edit',
                            api: [api.resourceFormatUpdate]
                        }, {
                            name: '添加',
                            role: '/resourceFormat/add',
                            api: [api.resourceFormatSave]
                        }, {
                            name: '删除',
                            role: '/resourceFormat/delete',
                            api: [api.resourceFormatDelete]
                        },
                    ]
                },
            ]
        }
    ]
}
export default resourceManageRoles;
